Hi everyone!

Before we can connect our MCP server to Claude Desktop, we need to configure a few things.

This setup tells Claude where to find your Python installation and how to connect to your MCP server.

Let's go through each step to make sure you're ready.


1. Locate Your Python Installation

- Open your terminal or command prompt

- Run: which python (macOS/Linux) or where python (Windows)

- Copy the full path, you'll need this for Claude app config file.


2. Create the Configuration Directory


For macOS

- Navigate to: ~/Library/Application Support/Claude

- Create this folder if it doesn't exist


For Windows

- Navigate to: %APPDATA%\Claude

- Create this folder if it doesn't exist


For Linux

- Navigate to: ~/.config/Claude

- Create this folder if it doesn't exist

3. Create the Configuration File

- In the directory from Step 3, create a file named: claude_desktop_config.json - Add the following configuration:

{
    "mcpServers": {
      "contentful": {
        "command": "[YOUR_PYTHON_PATH]",
        "args": [
          "[FULL_PATH_TO]/contentful_mcp.py"
        ],
        "env": {
            "CONTENTFUL_CMA_TOKEN": "YOUR_TOKEN_HERE",
            "CONTENTFUL_SPACE_ID": "YOUR_SPACE_ID_HERE"
        }
      }
    }
}


  1. Replace [YOUR_PYTHON_PATH] with the path from Step 2

  2. Replace [FULL_PATH_TO]/contentful_mcp.py with the full path to your MCP server file

  3. Add your Contentful Management API token

  4. Add your Contentful Space ID


4. Close and Re-open Claude Desktop

- Close your Claude app completely (not just minimize)

- Re-open Claude Desktop

- This is needed for the local MCP config to take effect

- Check Settings → Developer to verify your MCP server appears.